package com.software.sqlite.service;

import com.software.sqlite.entity.MenuInfo;
import com.software.sqlite.entity.ParentTreeEntity;
import com.software.sqlite.entity.TbMenu;
import com.software.sqlite.entity.TbRoleMenu;

import java.util.List;

/**
 * Service
 */
public interface ITbRoleMenuService {


    /**
     * 批量设置菜单
     * @param token
     * @param roleId
     * @param menuIds
     * @return
     * @throws Exception
     */
    boolean batchSetMenu(String token,Long roleId,String roleName,String menuIds,String systemType,Integer sort)throws Exception;
    /**
     * 添加/修改
     * @param model
     * @return
     */
    boolean edit(TbRoleMenu model);

    /**
     * 导入Excel
     * @param model
     * @throws Exception
     */
    void importData(TbRoleMenu model)throws Exception;

    /**
     * 导出Excel
     * @param model
     * @throws Exception
     */
    void exportData(TbRoleMenu model)throws Exception;

    List<TbMenu> selectMenuListByRoleId(Long roleId);

    ParentTreeEntity getMenuTree(Long roleId) throws Exception;

    List<MenuInfo> getMenuInfo(Long roleId)throws Exception;

}
